package com.example.housebiz.mapper;

import com.example.housecommon.model.Community;
import com.example.housecommon.model.House;
import com.example.housecommon.model.HouseUser;
import com.example.housecommon.model.UserMsg;
import com.example.housecommon.page.PageParams;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：Anitaxiaofeng
 * @description：
 * @create 2018-05-30
 **/
@Mapper
public interface HouseMapper {
    public List<House> selectPageHouses(@Param("house")House house, @Param("pageParams")PageParams pageParams);
    public Long selectPageCount(@Param("house")House query);
    public int insert(House house);
    public List<Community> selectCommunity(Community community);
    public HouseUser selectSaleHouseUser(@Param("id") Long houseId);
    public int insertUserMsg(UserMsg userMsg);
    public HouseUser selectHouseUser(@Param("userId")Long userId,@Param("id") Long houseId,@Param("type") Integer integer);
    public int insertHouseUser(HouseUser houseUser);
    public int updateHouse(House updateHouse);
    public  int downHouse(Long id);
    public int deleteHouseUser(@Param("id")Long id,@Param("userId") Long userId,@Param("type") Integer value);


}
